<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:77:"D:\phpstudy\WWW\jiarong\public/../application/admin\view\wechat\card\add.html";i:1528425553;s:66:"D:\phpstudy\WWW\jiarong\application\admin\view\layout\default.html";i:1523891109;s:63:"D:\phpstudy\WWW\jiarong\application\admin\view\common\meta.html";i:1523891109;s:65:"D:\phpstudy\WWW\jiarong\application\admin\view\common\script.html";i:1523891109;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="__CDN__/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="__CDN__/assets/js/html5shiv.js"></script>
  <script src="__CDN__/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#base" data-toggle="tab">基础</a></li>
                <li><a href="#other" data-toggle="tab">其他</a></li>
                <li><a href="#link" data-toggle="tab">链接</a></li>
            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">

            <div class="tab-pane fade active in" id="base">
                <div class="form-group hidden">
                    <label for="c-mp_id" class="control-label col-xs-12 col-sm-2"><?php echo __('Mp_id'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-mp_id" data-rule="required" class="form-control" name="row[mp_id]" type="text" value="<?php echo get_admin_applet_id(); ?>">
                        <input id="c-card_type" class="form-control" name="row[card_type]" value="<?php echo \think\Request::instance()->get('type'); ?>"
                               type="text">
						<input id="c-admin_id" data-rule="required" class="form-control" name="row[admin_id]" type="text" value="<?php echo \think\Session::get('admin.id'); ?>">
                    </div>
                </div>


				<div class="form-group">
					<label for="c-store_id" class="control-label col-xs-12 col-sm-2"><?php echo __('店铺名'); ?>:</label>
					<div class="col-xs-12 col-sm-8">
						<select  id="c-store_id" data-rule="required" class="form-control selectpicker" name="row[store_id]">
							<?php if(is_array($storeList) || $storeList instanceof \think\Collection || $storeList instanceof \think\Paginator): if( count($storeList)==0 ) : echo "" ;else: foreach($storeList as $key=>$vo): ?>
							<option value="<?php echo $vo['id']; ?>"><?php echo $vo['s_name']; ?></option>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</div>
				</div>


                <div class="form-group">
                    <label for="c-cat_id" class="control-label col-xs-12 col-sm-2"><?php echo __('卡券分类'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <select  id="c-cat_id" data-rule="required" class="form-control selectpicker" name="row[cat_id]">
                            <?php if(is_array($catList) || $catList instanceof \think\Collection || $catList instanceof \think\Paginator): if( count($catList)==0 ) : echo "" ;else: foreach($catList as $key=>$vo): ?>
                            <option value="<?php echo $vo; ?>"><?php echo $key; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label for="c-logo_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Logo_url'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-logo_url" data-rule="required" class="form-control" size="50" name="row[logo_url]" type="text" placeholder="宽度大于115px，高度大于90px。比列4:3,图片大小500KB">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" id="plupload-logo_url" class="btn btn-danger plupload" data-input-id="c-logo_url" data-maxsize="500KB" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo_url"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                                <span><button type="button" id="fachoose-logo_url" class="btn btn-primary fachoose" data-input-id="c-logo_url" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
                            </div>
                            <span class="msg-box n-right" for="c-logo_url"></span>
                        </div>
                        <ul class="row list-inline plupload-preview" id="p-logo_url"></ul>
                    </div>
                </div>
				<div class="form-group">
					<label for="c-brand_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Brand_name'); ?>:</label>
					<div class="col-xs-12 col-sm-8">
                        <input id="c-brand_name" data-rule="required" readonly="readonly" class="form-control" name="row[brand_name]" type="text" value="嘉荣超市" placeholder="请输入商户名称" maxlength="12">
                    </div>
				</div>
                <div class="form-group">
                    <label for="c-title" class="control-label col-xs-12 col-sm-2"><?php echo __('Title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="" placeholder="代金券的名称，至多9个汉字"  maxlength="9">
                    </div>
                </div>

                <!--<div class="form-group">-->
                    <!--<label for="c-use_type" class="control-label col-xs-12 col-sm-2"><?php echo __('使用类型'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<select  id="c-use_type" data-rule="required" class="form-control selectpicker" name="row[use_type]">-->
                            <!--<?php if(is_array($useList) || $useList instanceof \think\Collection || $useList instanceof \think\Paginator): if( count($useList)==0 ) : echo "" ;else: foreach($useList as $key=>$vo): ?>-->
                            <!--<option value="<?php echo $key; ?>"><?php echo $vo; ?></option>-->
                            <!--<?php endforeach; endif; else: echo "" ;endif; ?>-->
                        <!--</select>-->
                    <!--</div>-->
                <!--</div>-->

                <div class="form-group">
                    <label for="c-sub_title" class="control-label col-xs-12 col-sm-2">使用范围:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-sub_title" data-rule="required" readonly="readonly" class="form-control" name="row[sub_title]" type="text" value="嘉荣超市内均可使用" placeholder="使用范围"  maxlength="12">
                    </div>
                </div>


                <?php if(\think\Request::instance()->get('type') != 'CASH'): ?>

                <div class="form-group">
                    <label for="c-csost_price" class="control-label col-xs-12 col-sm-2"><?php echo __('原价'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-csost_price" class="form-control" name="row[cost_price]" type="text" value="0.00"  data-rule="required;"  maxlength="12">
                    </div>
                </div>

				<div class="form-group">
					<label for="c-business_price" class="control-label col-xs-12 col-sm-2"><?php echo __('现价'); ?>:</label>
					<div class="col-xs-12 col-sm-8">
						<input id="c-business_price" class="form-control" name="row[business_price]" type="text" value="0.00"  data-rule="required;"  maxlength="12">
					</div>
				</div>

				<?php endif; ?>


                <div class="form-group">
                    <label for="c-color" class="control-label col-xs-12 col-sm-2"><?php echo __('Color'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <!--            <select  id="c-color" data-rule="required" class="form-control selectpicker" name="row[color]">
                                        <?php if(is_array($colorList) || $colorList instanceof \think\Collection || $colorList instanceof \think\Paginator): if( count($colorList)==0 ) : echo "" ;else: foreach($colorList as $key=>$vo): ?>
                                        <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"false"))): ?>selected<?php endif; ?> style="background-color: <?php echo $vo; ?>;">
                                            <?php echo $vo; ?> <div style="background-color: <?php echo $vo; ?>;"></div>
                                        </option>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </select>-->

                        <div class="radio" id="c-color" data-rule="required">
                            <?php if(is_array($colorList) || $colorList instanceof \think\Collection || $colorList instanceof \think\Paginator): if( count($colorList)==0 ) : echo "" ;else: foreach($colorList as $key=>$vo): ?>
                            <label for="row[color]-<?php echo $key; ?>">
                                <input id="row[color]-<?php echo $key; ?>" name="row[color]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"Color010"))): ?>checked<?php endif; ?> />
                                <br>
                                <div class="col-sm-3" style="background-color: <?php echo $vo; ?>; height: 50px;"></div></label>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-notice" class="control-label col-xs-12 col-sm-2"><?php echo __('Notice'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-notice" data-rule="required" class="form-control" name="row[notice]" type="text" value="" maxlength="14" placeholder="使用时向服务员出示此券">
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-description" class="control-label col-xs-12 col-sm-2"><?php echo __('Description'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-description" data-rule="required" class="form-control editor" rows="5" name="row[description]" cols="50" maxlength="1024" placeholder="不可与其他优惠同享 仅限线下使用 (字数限制1024)"></textarea>
                    </div>
                </div>
                <div class="form-group">
                <?php switch(\think\Request::instance()->get('type')): case "CASH": ?>
                        <label for="c-least_cost" class="control-label col-xs-12 col-sm-2"><?php echo __('CASH_COUPON'); ?> :</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon">满(正整数)</span>
                                <input id="c-least_cost" data-rule="required;digits;" class="form-control" name="row[least_cost]" type="number" value="0">
                                </div>
                        </div>
                    </div>
                <div class="form-group">

                        <label for="c-reduce_cost" class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <span class="input-group-addon">减(正整数)</span>
                                <input id="c-reduce_cost" data-rule="required;digits;" class="form-control pull-left" name="row[reduce_cost]" type="number" value="0" >
                            </div>
                        </div>

                    <?php break; case "DISCOUNT": ?>
                        <label for="c-discount" class="control-label col-xs-12 col-sm-2"><?php echo __('DISCOUNT'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="input-group">
                                <input id="c-discount" data-rule="required" class="form-control" name="row[discount]" type="number" max="9.9" min="1.0" step="0.1" value="9" >
                                <span class="input-group-addon">折</span>
                            </div>
                        </div>
                    <?php break; case "GENERAL_COUPON": ?>
                        <label for="c-default_detail" class="control-label col-xs-12 col-sm-2"><?php echo __('Default_detail'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-default_detail" data-rule="required" class="form-control editor" rows="5" name="row[default_detail]" cols="50" placeholder="<?php echo __('Default_detail'); ?> (字数限制3072)"></textarea>
                        </div>
                    <?php break; case "GIFT": ?>
                        <label for="c-gift" class="control-label col-xs-12 col-sm-2"><?php echo __('Gift'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-gift" data-rule="required" class="form-control editor" rows="5" name="row[gift]" cols="50" placeholder="<?php echo __('Gift'); ?> (字数限制3072)"></textarea>
                        </div>
                    <?php break; case "GROUPON": ?>
                        <label for="c-deal_detail" class="control-label col-xs-12 col-sm-2"><?php echo __('Deal_detail'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <textarea id="c-deal_detail" data-rule="required" class="form-control editor" rows="5" name="row[deal_detail]" cols="50" placeholder="<?php echo __('Deal_detail'); ?> (字数限制3072)"></textarea>
                        </div>
                    <?php break; endswitch; ?>
                </div>
                <div class="form-group">
                    <label for="c-quantity" class="control-label col-xs-12 col-sm-2"><?php echo __('Quantity'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-quantity" data-rule="required" class="form-control" name="row[quantity]" type="number" value="10000" maxlength="5">
                    </div>
                </div>
            </div>

            <div class="tab-pane fade" id="other">
<!--                <div class="form-group">-->
<!--                    <label for="c-date_type" class="control-label col-xs-12 col-sm-2"><?php echo __('Type'); ?>:</label>-->
<!--                    <div class="col-xs-12 col-sm-8">-->
<!--                        <select  id="c-date_type" data-rule="required" class="form-control selectpicker" name="row[date_type]">-->
<!--                            <?php if(is_array($dateTypeList) || $dateTypeList instanceof \think\Collection || $dateTypeList instanceof \think\Paginator): if( count($dateTypeList)==0 ) : echo "" ;else: foreach($dateTypeList as $key=>$vo): ?>-->
<!--                            <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>-->
<!--                            <?php endforeach; endif; else: echo "" ;endif; ?>-->
<!--                        </select>-->
<!--                    </div>-->
<!--                </div>-->
<!--                <div id="date_block1">-->
<!--                    <!--// type为 动态时间 -->
<!--                    <div class="form-group">-->
<!--                        <label for="c-fixed_term" class="control-label col-xs-12 col-sm-2"><?php echo __('Fixed_term'); ?>:</label>-->
<!--                        <div class="col-xs-12 col-sm-8">-->
<!--                            <input id="c-fixed_term" data-rule="required" class="form-control" name="row[fixed_term]" type="number" value="30">-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="form-group">-->
<!--                        <label for="c-fixed_begin_term" class="control-label col-xs-12 col-sm-2"><?php echo __('Fixed_begin_term'); ?>:</label>-->
<!--                        <div class="col-xs-12 col-sm-8">-->
<!--                            <input id="c-fixed_begin_term" data-rule="required" class="form-control" name="row[fixed_begin_term]" type="number" value="0">-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <!-- type为 动态时间// -->
<!--                </div>-->
                <div id="date_block2">
                    <!--// type为 固定时间戳  -->
                    <div class="form-group">
                        <label for="c-begin_timestamp" class="control-label col-xs-12 col-sm-2"><?php echo __('Begin_timestamp'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-begin_timestamp"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[begin_timestamp]" type="text">

                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-end_timestamp" class="control-label col-xs-12 col-sm-2"><?php echo __('End_timestamp'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-end_timestamp"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[end_timestamp]" type="text">
                        </div>
                    </div>
                    <!-- type为 固定时间戳 // -->
                </div>
                <hr>
                <!--    <div class="form-group">
                        <label for="c-location_id_list" class="control-label col-xs-12 col-sm-2"><?php echo __('Location_id_list'); ?>:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-location_id_list" data-rule="required" class="form-control" name="row[location_id_list]" type="number" value="0">
                        </div>
                    </div>-->
                <div class="form-group">
                    <label for="c-get_limit" class="control-label col-xs-12 col-sm-2"><?php echo __('Get_limit'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-get_limit" class="form-control" name="row[get_limit]" data-rule="required;digits;" type="text" value="1">
                    </div>
                </div>
                <!-- <div class="form-group">
                     <label for="c-use_custom_code" class="control-label col-xs-12 col-sm-2"><?php echo __('Use_custom_code'); ?>:</label>
                     <div class="col-xs-12 col-sm-8">

                         <select  id="c-use_custom_code" data-rule="required" class="form-control selectpicker" name="row[use_custom_code]">
                             <?php if(is_array($useCustomCodeList) || $useCustomCodeList instanceof \think\Collection || $useCustomCodeList instanceof \think\Paginator): if( count($useCustomCodeList)==0 ) : echo "" ;else: foreach($useCustomCodeList as $key=>$vo): ?>
                                 <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"false"))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                             <?php endforeach; endif; else: echo "" ;endif; ?>
                         </select>

                     </div>
                 </div>
                 <div class="form-group">
                     <label for="c-get_custom_code_mode" class="control-label col-xs-12 col-sm-2"><?php echo __('Get_custom_code_mode'); ?>:</label>
                     <div class="col-xs-12 col-sm-8">

                         <select  id="c-get_custom_code_mode" data-rule="required" class="form-control selectpicker" name="row[get_custom_code_mode]">
                             <?php if(is_array($getCustomCodeModeList) || $getCustomCodeModeList instanceof \think\Collection || $getCustomCodeModeList instanceof \think\Paginator): if( count($getCustomCodeModeList)==0 ) : echo "" ;else: foreach($getCustomCodeModeList as $key=>$vo): ?>
                                 <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',""))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                             <?php endforeach; endif; else: echo "" ;endif; ?>
                         </select>

                     </div>
                 </div>
                 <div class="form-group">
                     <label for="c-bind_openid" class="control-label col-xs-12 col-sm-2"><?php echo __('Bind_openid'); ?>:</label>
                     <div class="col-xs-12 col-sm-8">

                         <select  id="c-bind_openid" data-rule="required" class="form-control selectpicker" name="row[bind_openid]">
                             <?php if(is_array($bindOpenidList) || $bindOpenidList instanceof \think\Collection || $bindOpenidList instanceof \think\Paginator): if( count($bindOpenidList)==0 ) : echo "" ;else: foreach($bindOpenidList as $key=>$vo): ?>
                                 <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"false"))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                             <?php endforeach; endif; else: echo "" ;endif; ?>
                         </select>

                     </div>
                 </div>-->
                <div class="form-group">
                    <label for="c-can_share" class="control-label col-xs-12 col-sm-2"><?php echo __('Can_share'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-can_share" data-rule="required" class="form-control selectpicker" name="row[can_share]">
                            <?php if(is_array($canShareList) || $canShareList instanceof \think\Collection || $canShareList instanceof \think\Paginator): if( count($canShareList)==0 ) : echo "" ;else: foreach($canShareList as $key=>$vo): ?>
                            <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"true"))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>

                    </div>
                </div>
                <div class="form-group">
                    <label for="c-can_give_friend" class="control-label col-xs-12 col-sm-2"><?php echo __('Can_give_friend'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">

                        <select  id="c-can_give_friend" data-rule="required" class="form-control selectpicker" name="row[can_give_friend]">
                            <?php if(is_array($canGiveFriendList) || $canGiveFriendList instanceof \think\Collection || $canGiveFriendList instanceof \think\Paginator): if( count($canGiveFriendList)==0 ) : echo "" ;else: foreach($canGiveFriendList as $key=>$vo): ?>
                            <option value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"true"))): ?>selected<?php endif; ?>><?php echo $vo; ?></option>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </select>

                    </div>
                </div>
                <div class="form-group">
                    <label for="c-service_phone" class="control-label col-xs-12 col-sm-2"><?php echo __('Service_phone'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-service_phone" class="form-control" name="row[service_phone]" type="text" value="" data-rule="required;"  placeholder="请输入联系电话">
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="link">
                <!--<div class="form-group">-->
                    <!--<label for="c-center_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Center_title'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<input id="c-center_title"  class="form-control" name="row[center_title]" type="text" maxlength="9" value="立即使用">-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="form-group">-->
                    <!--<label for="c-center_sub_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Center_sub_title'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<input id="c-center_sub_title" class="form-control" name="row[center_sub_title]" type="text" maxlength="12" value="">-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="form-group">-->
                    <!--<label for="c-center_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Center_url'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<input id="c-center_url" class="form-control" name="row[center_url]" type="text" value="" maxlength="128">-->
                    <!--</div>-->
                <!--</div>-->
                <hr>
                <div class="form-group">
                    <label for="c-custom_url_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Custom_url_name'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-custom_url_name" class="form-control" name="row[custom_url_name]" type="text" value="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-custom_url_sub_title" class="control-label col-xs-12 col-sm-2"><?php echo __('Custom_url_sub_title'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-custom_url_sub_title" class="form-control" name="row[custom_url_sub_title]" type="text" value="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="c-custom_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Custom_url'); ?>:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-custom_url" class="form-control" name="row[custom_url]" type="text" value="">
                    </div>
                </div>
                <hr>
                <!--<div class="form-group">-->
                    <!--<label for="c-promotion_url_name" class="control-label col-xs-12 col-sm-2"><?php echo __('Promotion_url_name'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<input id="c-promotion_url_name" class="form-control" name="row[promotion_url_name]" type="text" value="">-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="form-group">-->
                    <!--<label for="c-promotion_url" class="control-label col-xs-12 col-sm-2"><?php echo __('Promotion_url'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<input id="c-promotion_url" class="form-control" name="row[promotion_url]" type="text" value="">-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="form-group">-->
                    <!--<label for="c-source" class="control-label col-xs-12 col-sm-2"><?php echo __('Source'); ?>:</label>-->
                    <!--<div class="col-xs-12 col-sm-8">-->
                        <!--<input id="c-source" class="form-control" name="row[source]" type="text" value="">-->
                    <!--</div>-->
                <!--</div>-->
            </div>
        </div>
        </div>

        <!--警示-->
        <div class="alert alert-warning " id="myalert" >
            <!--<a href="#" class="close" data-dismiss="alert">-->
                <!--&times;-->
            <!--</a>-->
            <strong>警告！</strong><span id="alert-text">卡券输入的数据有误</span>
        </div>

        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled" id="form-submit"><?php echo __('OK'); ?></button>
                <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
            </div>
        </div>
    </div>
</form>

<script>
//    var dateType = document.getElementById('c-date_type');
//    dateType.addEventListener("change", function(){
//        var type = this.value;
//        if(type === 'DATE_TYPE_FIX_TIME_RANGE'){
//            document.getElementById('date_block1').className = 'hidden';
//            document.getElementById('date_block2').className = 'visible';
//        }else{
//            document.getElementById('date_block1').className = 'visible';
//            document.getElementById('date_block2').className = 'hidden';
//        }
////        alert(type);
////        console.log(1);
//    }, false);

</script>
<style>
    #myalert{
        display:none;
    }
</style>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="__CDN__/assets/js/require.js" data-main="__CDN__/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>